package com.cloudkinto.service.dic;

import com.cloudkinto.common.exception.BizException;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.DicBusinessDo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.service.dic.vo.dicBusiness.DicBusinessAddReq;
import com.cloudkinto.service.dic.vo.dicBusiness.DicBusinessDetailRes;
import com.cloudkinto.service.dic.vo.dicBusiness.DicBusinessListPageRes;
import com.cloudkinto.service.dic.vo.dicBusiness.DicBusinessUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务码表主表 service接口
 * </p>
 * @author 张永远
 * @since 2020-05-19
 */
public interface DicBusinessService extends IService<DicBusinessDo> {

    SingleResult addInit();

    DicBusinessAddReq add(DicBusinessAddReq req, Long userId) throws BizException;

    SingleResult updateInit(Long id);

    DicBusinessUpdateReq update(DicBusinessUpdateReq updateVo, Long userId) throws BizException;

    int delete(Long id, Long userId);

    DicBusinessDetailRes detail(Long id);

    SingleResult pageInit();

    List<DicBusinessListPageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);
}
